function Person(name,age){
    this.name = name;
    this.age = age;
}

//每个函数都有原型对象
Person.prototype={
    eat: function(){
        console.log(`${this.name}爱吃饭`)
    }
}

const xck =new Person("xck",18);
xck.eat();



const xql =new Person("xql",18);
xck.eat();
